var rulechangeutil = {};

rulechangeutil.getRule = function(info){

	var ruleSort = ["room_type_sub2","base_chip","rule_type","play_count","bet_type"];
	var ruleSortContent = [
	{
		title:"模式",
		content:["牛牛上庄","固定庄家","自由抢庄","明牌抢庄","通比牛牛"],
	},
	{   title:"底分",
		content:["1分","2分","3分","4分","5分"],
	},
	{
		title:"规则",
		content:["牛牛x3牛九x2牛八x2","牛牛x4牛九x3牛八x2牛七x2"],
	},
	{   
		title:"局数",
		content:["10局X1房卡","20局X2房卡"],
	},
	{
		title:"倍数",
		content:["1，2，4，5","1，3，5，8","2，4，6，8"],
	}];
	dump(info)
	var resultInfo = [] ;
	for(var k = 0;k<ruleSort.length;k++){
		var tempInfo = {};
		tempInfo.title = ruleSortContent[k].title;
		tempInfo.content = ruleSortContent[k].content[info[ruleSort[k]] -1 ];
	    resultInfo.push(tempInfo);
	}
	return resultInfo ;
},

module.exports = rulechangeutil ;